aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/accepted
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /src/routes/(app)/[username]/accepted
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'src/routes/(app)/[username]/accepted')
-rw-r--r--src/routes/(app)/[username]/accepted/[text]/+page.svelte20
-rw-r--r--src/routes/(app)/[username]/accepted/create/+page.svelte19
2 files changed, 8 insertions, 31 deletions
diff --git a/src/routes/(app)/[username]/accepted/[text]/+page.svelte b/src/routes/(app)/[username]/accepted/[text]/+page.svelte
index 339f6c9c..3e16177c 100644
--- a/src/routes/(app)/[username]/accepted/[text]/+page.svelte
+++ b/src/routes/(app)/[username]/accepted/[text]/+page.svelte
@@ -14,35 +14,23 @@
let lnurl = $derived(
`https://${PUBLIC_DOMAIN}/ln/${encode(
"lnurl",
- toWords(
- new TextEncoder().encode(`https://${PUBLIC_DOMAIN}/p/${username}`),
- ),
+ toWords(new TextEncoder().encode(`https://${PUBLIC_DOMAIN}/p/${username}`)),
20000,
)}`,
);
</script>
<div class="px-2">
- <div
- class="border-8 border-black p-8 max-w-[580px] mx-auto mt-20 space-y-2 rounded-3xl relative"
- >
+ <div class="border-8 border-black p-8 max-w-[580px] mx-auto mt-20 space-y-2 rounded-3xl relative">
<div class="flex gap-2 mx-auto justify-center">
<!-- <img src="/images/bitcoin.png" class="w-16 h-16 my-auto" /> -->
- <img
- src="/images/bitcoin-logo.png"
- class="my-auto w-[400px]"
- alt="Bitcoin"
- />
+ <img src="/images/bitcoin-logo.png" class="my-auto w-[400px]" alt="Bitcoin" />
<!-- <h3 class="text-5xl font-bold text-center my-auto"> -->
<!-- bitcoin -->
<!-- </h3> -->
</div>
{#if nfc}
- <img
- src="/images/tap.png"
- class="w-24 absolute top-52 left-4 rotate-[-10deg]"
- alt="Tap"
- />
+ <img src="/images/tap.png" class="w-24 absolute top-52 left-4 rotate-[-10deg]" alt="Tap" />
<img
src="/images/arrow.png"
class="w-24 scale-x-[-1] rotate-[120deg] absolute top-52 left-32 w-20 h-52"
diff --git a/src/routes/(app)/[username]/accepted/create/+page.svelte b/src/routes/(app)/[username]/accepted/create/+page.svelte
index 189a734d..3a17bcc0 100644
--- a/src/routes/(app)/[username]/accepted/create/+page.svelte
+++ b/src/routes/(app)/[username]/accepted/create/+page.svelte
@@ -8,8 +8,7 @@
text = $state(),
pasted = $state();
- let keypress = (e) =>
- e.key === "Enter" ? e.preventDefault() || el.click() : (pasted = false);
+ let keypress = (e) => (e.key === "Enter" ? e.preventDefault() || el.click() : (pasted = false));
let paste = async () => {
text = await navigator.clipboard.readText();
@@ -24,9 +23,7 @@
</script>
<div class="container px-4 max-w-lg mx-auto space-y-5 mt-20">
- <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">
- Create QR
- </h1>
+ <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">Create QR</h1>
<form onsubmit={preventDefault(submit)} class="space-y-2 text-xl">
<div class="mb-2">
@@ -48,11 +45,7 @@
class="flex border rounded-2xl px-6 py-5 font-bold hover:opacity-80 w-full bg-primary justify-center gap-2"
onclick={paste}
>
- <iconify-icon
- noobserver
- icon="ph:clipboard-text-bold"
- width="32"
- class="my-auto"
+ <iconify-icon noobserver icon="ph:clipboard-text-bold" width="32" class="my-auto"
></iconify-icon>
<div class="my-auto">{$t("user.send.paste")}</div>
</button>
@@ -62,11 +55,7 @@
type="submit"
class="flex bg-black text-white border rounded-2xl px-6 py-5 w-full font-bold gap-2 justify-center"
>
- <iconify-icon
- noobserver
- icon="ph:paper-plane-right-bold"
- width="32"
- class="my-auto invert"
+ <iconify-icon noobserver icon="ph:paper-plane-right-bold" width="32" class="my-auto invert"
></iconify-icon>
<div class="my-auto">{$t("user.dashboard.go")}</div>
</button>